/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * mainPage.java
 *
 * Created on 29-Sep-2010, 16:14:44
 */

package COMIC_BOOK_STORE;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author benson
 */
public class MAIN_MENU extends javax.swing.JFrame {


    /** Creates new form mainPage */
    public MAIN_MENU() {
        super("MAIN MENU");

        initComponents();
        this.setLocationRelativeTo(null);
        
        adminButton.setVisible(isAdmin);
        jLabel3.setText("STAFF ON DUTY: " + staffOnDuty);

        SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss:aa");
        jLabel2.setText(sdf.format(new Date(System.currentTimeMillis())));

        javax.swing.Timer t = new javax.swing.Timer(1000, new ActionListener() {
          public void actionPerformed(ActionEvent e) {

             SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss:aa");
             jLabel2.setText(sdf.format(new Date(System.currentTimeMillis())));
          }
       });

       t.start();

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        rentBookButton = new javax.swing.JButton();
        returnBookButton = new javax.swing.JButton();
        addBookButton = new javax.swing.JButton();
        jLabel50 = new javax.swing.JLabel();
        searchBookButton = new javax.swing.JButton();
        newMemberButton = new javax.swing.JButton();
        topupButton = new javax.swing.JButton();
        checkEditButton = new javax.swing.JButton();
        adminButton = new javax.swing.JButton();
        staffLogoutButton = new javax.swing.JButton();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(102, 102, 255));
        setResizable(false);

        jLayeredPane1.setBackground(new java.awt.Color(102, 102, 255));

        rentBookButton.setBackground(new java.awt.Color(0, 0, 204));
        rentBookButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        rentBookButton.setForeground(new java.awt.Color(102, 0, 255));
        rentBookButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/kaddressbook.png"))); // NOI18N
        rentBookButton.setText("RENT BOOK");
        rentBookButton.setAutoscrolls(true);
        rentBookButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        rentBookButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        rentBookButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        rentBookButton.setIconTextGap(5);
        rentBookButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                rentBookButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                rentBookButtonMouseExited(evt);
            }
        });
        rentBookButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rentBookButtonActionPerformed(evt);
            }
        });
        rentBookButton.setBounds(50, 120, 230, 60);
        jLayeredPane1.add(rentBookButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        returnBookButton.setBackground(new java.awt.Color(204, 204, 255));
        returnBookButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        returnBookButton.setForeground(new java.awt.Color(102, 0, 255));
        returnBookButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/kaddressbook.png"))); // NOI18N
        returnBookButton.setText("RETURN BOOK");
        returnBookButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        returnBookButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        returnBookButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        returnBookButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                returnBookButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                returnBookButtonMouseExited(evt);
            }
        });
        returnBookButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returnBookButtonActionPerformed(evt);
            }
        });
        returnBookButton.setBounds(50, 200, 230, 60);
        jLayeredPane1.add(returnBookButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        addBookButton.setBackground(new java.awt.Color(204, 204, 255));
        addBookButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        addBookButton.setForeground(new java.awt.Color(102, 0, 255));
        addBookButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/kaddressbook.png"))); // NOI18N
        addBookButton.setText("ADD A BOOK");
        addBookButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        addBookButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        addBookButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        addBookButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                addBookButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                addBookButtonMouseExited(evt);
            }
        });
        addBookButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addBookButtonActionPerformed(evt);
            }
        });
        addBookButton.setBounds(50, 280, 230, 60);
        jLayeredPane1.add(addBookButton, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLabel50.setBounds(0, 0, -1, -1);
        jLayeredPane1.add(jLabel50, javax.swing.JLayeredPane.DEFAULT_LAYER);

        searchBookButton.setBackground(new java.awt.Color(204, 204, 255));
        searchBookButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        searchBookButton.setForeground(new java.awt.Color(102, 0, 255));
        searchBookButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/kaddressbook.png"))); // NOI18N
        searchBookButton.setText("SEARCH BOOK");
        searchBookButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        searchBookButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        searchBookButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        searchBookButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                searchBookButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                searchBookButtonMouseExited(evt);
            }
        });
        searchBookButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchBookButtonActionPerformed(evt);
            }
        });
        searchBookButton.setBounds(50, 360, 230, 60);
        jLayeredPane1.add(searchBookButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        newMemberButton.setBackground(new java.awt.Color(204, 204, 255));
        newMemberButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        newMemberButton.setForeground(new java.awt.Color(102, 0, 255));
        newMemberButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/personal.png"))); // NOI18N
        newMemberButton.setText("NEW MEMBER");
        newMemberButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        newMemberButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        newMemberButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        newMemberButton.setIconTextGap(30);
        newMemberButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                newMemberButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                newMemberButtonMouseExited(evt);
            }
        });
        newMemberButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newMemberButtonActionPerformed(evt);
            }
        });
        newMemberButton.setBounds(320, 120, 260, 60);
        jLayeredPane1.add(newMemberButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        topupButton.setBackground(new java.awt.Color(204, 204, 255));
        topupButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        topupButton.setForeground(new java.awt.Color(102, 0, 255));
        topupButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/personal.png"))); // NOI18N
        topupButton.setText("TOP UP");
        topupButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        topupButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        topupButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        topupButton.setIconTextGap(50);
        topupButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                topupButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                topupButtonMouseExited(evt);
            }
        });
        topupButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                topupButtonActionPerformed(evt);
            }
        });
        topupButton.setBounds(320, 200, 260, 60);
        jLayeredPane1.add(topupButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        checkEditButton.setBackground(new java.awt.Color(204, 204, 255));
        checkEditButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        checkEditButton.setForeground(new java.awt.Color(102, 0, 255));
        checkEditButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/personal.png"))); // NOI18N
        checkEditButton.setText("CHECK/EDIT  CUSTOMER");
        checkEditButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        checkEditButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        checkEditButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        checkEditButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                checkEditButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                checkEditButtonMouseExited(evt);
            }
        });
        checkEditButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEditButtonActionPerformed(evt);
            }
        });
        checkEditButton.setBounds(320, 280, 260, 60);
        jLayeredPane1.add(checkEditButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        adminButton.setBackground(new java.awt.Color(204, 204, 255));
        adminButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        adminButton.setForeground(new java.awt.Color(102, 0, 255));
        adminButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/setup_assistant.png"))); // NOI18N
        adminButton.setText("ADMIN");
        adminButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        adminButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        adminButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        adminButton.setIconTextGap(50);
        adminButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                adminButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                adminButtonMouseExited(evt);
            }
        });
        adminButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                adminButtonActionPerformed(evt);
            }
        });
        adminButton.setBounds(610, 360, 240, 60);
        jLayeredPane1.add(adminButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        staffLogoutButton.setBackground(new java.awt.Color(204, 204, 255));
        staffLogoutButton.setFont(new java.awt.Font("Lucida Bright", 1, 12));
        staffLogoutButton.setForeground(new java.awt.Color(102, 0, 255));
        staffLogoutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/personal.png"))); // NOI18N
        staffLogoutButton.setText("STAFF LOGOUT");
        staffLogoutButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 4, true));
        staffLogoutButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        staffLogoutButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        staffLogoutButton.setIconTextGap(30);
        staffLogoutButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                staffLogoutButtonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                staffLogoutButtonMouseExited(evt);
            }
        });
        staffLogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                staffLogoutButtonActionPerformed(evt);
            }
        });
        staffLogoutButton.setBounds(320, 360, 260, 60);
        jLayeredPane1.add(staffLogoutButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea1.setColumns(20);
        jTextArea1.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 13));
        jTextArea1.setRows(5);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application.  \n-----------------------------\n\nPlease select an operation: ");
        jTextArea1.setBounds(610, 120, 240, 230);
        jLayeredPane1.add(jTextArea1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setFont(new java.awt.Font("Serif", 3, 24));
        jLabel2.setForeground(new java.awt.Color(0, 0, 255));
        jLabel2.setText("00:00:00:AM");
        jLabel2.setBounds(400, 30, 150, 40);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel3.setFont(new java.awt.Font("Serif", 3, 24));
        jLabel3.setForeground(new java.awt.Color(0, 0, 255));
        jLabel3.setText("STAFF ON DUTY: ---------------");
        jLabel3.setBounds(30, 30, 420, 40);
        jLayeredPane1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/Background3 copy.jpg"))); // NOI18N
        jLabel1.setBounds(0, 0, 900, 500);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 900, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 500, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>                        

    public static Boolean isAdmin;
    public static String staffOnDuty;

    private void rentBookButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
        try {
            new BOOK_RENT().setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(MAIN_MENU.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.setVisible(false);
}                                              

    private void newMemberButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                

        new MEMBER_ADD().setVisible(true);
        this.setVisible(false);
}                                               

    private void topupButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            

        new ACCOUNT_TOPUP().setVisible(true);
        this.setVisible(false);
}                                           

    private void checkEditButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                

        new MEMBER_CHECK_EDIT().setVisible(true);
        this.setVisible(false);
}                                               

    private void staffLogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                  

        new STAFF_LOGIN().setVisible(true);
        this.setVisible(false);
}                                                 

    private void adminButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
        new ADMIN_CONSOLE().setVisible(true);
        this.setVisible(false);
}                                           

    private void returnBookButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        try {
            new BOOK_RETURN().setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(MAIN_MENU.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.setVisible(false);
    }                                                

    private void addBookButtonActionPerformed(java.awt.event.ActionEvent evt) {                                              
        try {
            new BOOK_ADD().setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(MAIN_MENU.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.setVisible(false);
    }                                             

    private void searchBookButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        try {
            new BOOK_SEARCH().setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(MAIN_MENU.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.setVisible(false);
    }                                                

    private void returnBookButtonMouseEntered(java.awt.event.MouseEvent evt) {                                              
        returnBookButton.resize(returnBookButton.getWidth()+4, returnBookButton.getHeight()+4);
        jTextArea1.setText("--------------- \n RETURN A BOOK \n--------------- \n\n Return books");
    }                                             

    private void returnBookButtonMouseExited(java.awt.event.MouseEvent evt) {                                             
        returnBookButton.resize(returnBookButton.getWidth()-4, returnBookButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                            

    private void rentBookButtonMouseEntered(java.awt.event.MouseEvent evt) {                                            
        rentBookButton.resize(rentBookButton.getWidth()+4, rentBookButton.getHeight()+4);
        jTextArea1.setText("-------------- \n RENT A BOOK \n-------------- \n\n Handle a rental process \n for member");
    }                                           

    private void addBookButtonMouseEntered(java.awt.event.MouseEvent evt) {                                           
        addBookButton.resize(addBookButton.getWidth()+4, addBookButton.getHeight()+4);
        jTextArea1.setText("---------------- \n ADD A NEW BOOK \n---------------- \n\n Insert a new book record");
    }                                          

    private void searchBookButtonMouseEntered(java.awt.event.MouseEvent evt) {                                              
        searchBookButton.resize(searchBookButton.getWidth()+4, searchBookButton.getHeight()+4);
        jTextArea1.setText("--------------- \n SEARCH A BOOK \n--------------- \n\n Looking for a book? \n By name, by code \n or by any means!");
    }                                             

    private void newMemberButtonMouseEntered(java.awt.event.MouseEvent evt) {                                             
        newMemberButton.resize(newMemberButton.getWidth()+4, newMemberButton.getHeight()+4);
        jTextArea1.setText("------------ \n NEW MEMBER \n------------ \n\n New member registration");
    }                                            

    private void topupButtonMouseEntered(java.awt.event.MouseEvent evt) {                                         
        topupButton.resize(topupButton.getWidth()+4, topupButton.getHeight()+4);
        jTextArea1.setText("-------- \n TOP UP \n-------- \n\n Member reload / credit top up");
    }                                        

    private void checkEditButtonMouseEntered(java.awt.event.MouseEvent evt) {                                             
        checkEditButton.resize(checkEditButton.getWidth()+4, checkEditButton.getHeight()+4);
        jTextArea1.setText("------------------- \n CHECK/EDIT MEMBER \n------------------- \n\n Display details of members \n Edit member details");
    }                                            

    private void staffLogoutButtonMouseEntered(java.awt.event.MouseEvent evt) {                                               
        staffLogoutButton.resize(staffLogoutButton.getWidth()+4, staffLogoutButton.getHeight()+4);
        jTextArea1.setText("--------- \n LOG OUT \n---------");
    }                                              

    private void adminButtonMouseEntered(java.awt.event.MouseEvent evt) {                                         
        adminButton.resize(adminButton.getWidth()+4, adminButton.getHeight()+4);
        jTextArea1.setText("---------------- \n ADMIN FUNCTION \n---------------- \n\n Accounting records \n Book records \n Customer records \n Staff records");
    }                                        

    private void rentBookButtonMouseExited(java.awt.event.MouseEvent evt) {                                           
        rentBookButton.resize(rentBookButton.getWidth()-4, rentBookButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                          

    private void addBookButtonMouseExited(java.awt.event.MouseEvent evt) {                                          
        addBookButton.resize(addBookButton.getWidth()-4, addBookButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                         

    private void searchBookButtonMouseExited(java.awt.event.MouseEvent evt) {                                             
        searchBookButton.resize(searchBookButton.getWidth()-4, searchBookButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                            

    private void newMemberButtonMouseExited(java.awt.event.MouseEvent evt) {                                            
        newMemberButton.resize(newMemberButton.getWidth()-4, newMemberButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                           

    private void topupButtonMouseExited(java.awt.event.MouseEvent evt) {                                        
        topupButton.resize(topupButton.getWidth()-4, topupButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                       

    private void checkEditButtonMouseExited(java.awt.event.MouseEvent evt) {                                            
        checkEditButton.resize(checkEditButton.getWidth()-4, checkEditButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                           

    private void staffLogoutButtonMouseExited(java.awt.event.MouseEvent evt) {                                              
        staffLogoutButton.resize(staffLogoutButton.getWidth()-4, staffLogoutButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                             

    private void adminButtonMouseExited(java.awt.event.MouseEvent evt) {                                        
        adminButton.resize(adminButton.getWidth()-4, adminButton.getHeight()-4);
        jTextArea1.setText("Welcome to Comic Book Rental \nManagement Application. \n----------------------------- \n\nPlease select an operation: ");
    }                                       

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MAIN_MENU().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                     
    private javax.swing.JButton addBookButton;
    public static javax.swing.JButton adminButton;
    private javax.swing.JButton checkEditButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JButton newMemberButton;
    private javax.swing.JButton rentBookButton;
    private javax.swing.JButton returnBookButton;
    private javax.swing.JButton searchBookButton;
    private javax.swing.JButton staffLogoutButton;
    private javax.swing.JButton topupButton;
    // End of variables declaration                   

}
